package com.tfy.liquor.service;

import com.tfy.liquor.bean.UserShoppingAddress;
import org.springframework.stereotype.Service;
import java.util.ArrayList;

@Service
public interface UserShoppingAddressService {
    /**
     * 添加收货地址信息
     * @param userShoppingAddress
     * @return
     */
    Boolean addUserShoppingAddress(UserShoppingAddress userShoppingAddress);

    /**
     * 根据用户信息获取收货地址
     * @param userId
     * @return
     */
    ArrayList<UserShoppingAddress> getUserShoppingAddressByUserId(Long userId);

    /**
     * 根据收货地址编号获取信息
     * @param addressId
     * @return
     */
    UserShoppingAddress getUserShoppingAddressById(int addressId);

    /**
     * 停用收货地址信息
     * @param userShoppingAddress
     * @return
     */
    Boolean stopUserShoppingAddressById(UserShoppingAddress userShoppingAddress);

    /**
     * 获取用户默认收货地址
     * @param userId
     * @return
     */
    UserShoppingAddress getDefaultUserShoppingAddress(Long userId);
}
